home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML 2.0 Sourcebook (2nd Edition)
/
VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso
/
book
/
unix
/
ch31
/
31fig07.wrl
< prev
next >
Wrap
Text File
|
1996-09-23
|
710b
|
31 lines
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright [1997] By
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
EXTERNPROTO Donut [
field SFFloat crossSectionRadius
field SFFloat spineRadius
field SFInt32 crossSectionResolution
field SFInt32 spineResolution
eventIn SFFloat set_crossSectionRadius
eventIn SFFloat set_spineRadius
eventOut MFVec2f crossSection_changed
eventOut MFVec3f spine_changed
] "donutpro.wrl#Donut"
EXTERNPROTO LightOak [
exposedField SFNode textureTransform
] "applib.wrl#LightOak"
Shape {
appearance LightOak {
textureTransform TextureTransform {
translation 0.5 0.0
}
}
geometry Donut {
crossSectionRadius 1.0
spineRadius 2.0
}
}